package com.exchange.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName card_display
 */
@TableName(value ="card_display")
@Data
public class CardDisplay implements Serializable {
    /**
     * 卡卷列表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属套餐
     */
    @TableField(value = "patid")
    private Long patid;

    /**
     * 卡卷名称
     */
    @TableField(value = "card_name")
    private String cardName;

    /**
     * 卡卷折扣金额
     */
    @TableField(value = "count_price")
    private BigDecimal countPrice;

    /**
     * 类型0:满减卷1：天数卷
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 延长天数
     */
    @TableField(value = "day")
    private Integer day;

    /**
     * 该张卡卷持续时间
     */
    @TableField(value = "durable_time")
    private Integer durableTime;

    /**
     *
     */
    @TableField(value = "remark")
    private Long remark;

    /**
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
